package SinglePattern.HangleModel;

/**
 * 最基本的懒汉式
 * @author
 * @create 2018-10-18 11:03
 **/
public class HangleModel {

    private static HangleModel instance;
    private HangleModel(){}

    public static HangleModel getInstance(){
        if (instance == null) {
            instance = new HangleModel();
        }
        return instance;
    }

    public void sayHello(){
        System.out.println("HangleModel Hello Word!");
    }

}
